package ywpt.service.people;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.core.dao.HibernateEntityDao;
import ywpt.model.PeopleScans;

public class PeopleScansServiceImpl extends HibernateEntityDao<PeopleScans> implements  PeopleScansService{
	public PeopleScansServiceImpl(){
		
	}

	@Override
	public PeopleScans getPeopleScanById(Long id) {
		return this.get(id);
	}

	@Override
	public void savePeopleScans(PeopleScans peopleScans) {
		this.save(peopleScans);
	}

	@Override
	public int getPeopleScansCountByCriteria(DetachedCriteria query) {
		return this.getCountByCriteria(query);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<PeopleScans> getPeopleScans(DetachedCriteria query,
			int pageSize, int startIndex) {
		return this.findAllByCriteria(query, pageSize, startIndex);
	}

	@Override
	public void removePeopleScanById(Long id) {
		this.removeById(id);
	}
}
